package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.sell.model.entity.AgentCategory;
import com.wing.sell.model.request.AgentCategoryForm;
import com.wing.sell.model.response.AgentCategoryVO;

import java.util.List;
import java.util.Map;

/**
 * 代理商类别-Service
 *
 * @author
 */
public interface AgentCategoryService extends IService<AgentCategory> {

    /**
     * 添加
     *
     * @param agentCategoryForm
     * @return
     */
    int add(AgentCategoryForm agentCategoryForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<AgentCategoryVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<AgentCategoryVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    AgentCategoryVO get4appById(Long id);

    int enable(Long id);

    int disable(Long id);

    /**
     * 删除
     * @param agentCategoryId
     * @return
     */
    boolean delete(Long agentCategoryId);
}
